package com.yp.demo.web;

import com.yp.demo.feign.ShopFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by CrazyMouse on 2017/7/20.
 */
@RestController
public class ShopController {

    @Autowired
    private ShopFeign shopFeign;

    @GetMapping("/shop_index")
    public String getIndex() {
        return shopFeign.getIndex();
    }

    @GetMapping("/shop_user")
    public Object getUser() {
        return shopFeign.getUser();
    }
}
